package cn.zhentao.charge.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.zhentao.charge.mapper.ChargeStationDedicatedMapper;
import cn.zhentao.charge.domain.ChargeStationDedicated;
import cn.zhentao.charge.service.IChargeStationDedicatedService;

/**
 * 充电桩专用Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
@Service
public class ChargeStationDedicatedServiceImpl implements IChargeStationDedicatedService 
{
    @Autowired
    private ChargeStationDedicatedMapper chargeStationDedicatedMapper;

    /**
     * 查询充电桩专用
     * 
     * @param id 充电桩专用主键
     * @return 充电桩专用
     */
    @Override
    public ChargeStationDedicated selectChargeStationDedicatedById(Long id)
    {
        return chargeStationDedicatedMapper.selectChargeStationDedicatedById(id);
    }

    /**
     * 查询充电桩专用列表
     * 
     * @param chargeStationDedicated 充电桩专用
     * @return 充电桩专用
     */
    @Override
    public List<ChargeStationDedicated> selectChargeStationDedicatedList(ChargeStationDedicated chargeStationDedicated)
    {
        return chargeStationDedicatedMapper.selectChargeStationDedicatedList(chargeStationDedicated);
    }

    /**
     * 新增充电桩专用
     * 
     * @param chargeStationDedicated 充电桩专用
     * @return 结果
     */
    @Override
    public int insertChargeStationDedicated(ChargeStationDedicated chargeStationDedicated)
    {
        chargeStationDedicated.setCreateTime(DateUtils.getNowDate());
        return chargeStationDedicatedMapper.insertChargeStationDedicated(chargeStationDedicated);
    }

    /**
     * 修改充电桩专用
     * 
     * @param chargeStationDedicated 充电桩专用
     * @return 结果
     */
    @Override
    public int updateChargeStationDedicated(ChargeStationDedicated chargeStationDedicated)
    {
        return chargeStationDedicatedMapper.updateChargeStationDedicated(chargeStationDedicated);
    }

    /**
     * 批量删除充电桩专用
     * 
     * @param ids 需要删除的充电桩专用主键
     * @return 结果
     */
    @Override
    public int deleteChargeStationDedicatedByIds(Long[] ids)
    {
        return chargeStationDedicatedMapper.deleteChargeStationDedicatedByIds(ids);
    }

    /**
     * 删除充电桩专用信息
     * 
     * @param id 充电桩专用主键
     * @return 结果
     */
    @Override
    public int deleteChargeStationDedicatedById(Long id)
    {
        return chargeStationDedicatedMapper.deleteChargeStationDedicatedById(id);
    }
}
